home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #6
/
Amiga Plus CD - 1996 - No. 06.iso
/
pd
/
programmierung
/
programmers
/
examples
/
example1.c
next >
Wrap
C/C++ Source or Header
|
1996-06-23
|
595b
|
26 lines
/* This is a very simple example how to play a module which is converted
to an object file with Objconv.
Linking info:
blink from lib:c.o+example1.o+module.o+reloc.o to example1
lib lib:lc.lib+lib:amiga.lib nd sc sd
*/
#include <exec/types.h>
#include <libraries/dos.h>
#include <proto/exec.h>
#include "proplayer.h"
/* Use symbol name 'song' when using Objconv, or change this. */
extern struct MMD0 far song;
void main() /* this can be linked without c.o */
{
RelocModule(&song);
InitPlayer();
PlayModule(&song);
Wait(SIGBREAKF_CTRL_C); /* press Ctrl-C to quit */
RemPlayer();
}